package com.answeringplayer.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Timestamp;

/**
 * 用户实体类
 * 对应数据库表: users
 */
//Lombok注解
@Data
@AllArgsConstructor
@NoArgsConstructor
public class User {
    private Long userId;
    private String openid;
    private String username;
    private String password;
    private String nickname;
    private String avatarUrl;
    private Integer consecutiveDays;
    private Integer totalQuestionsAnswered;
    private Integer correctQuestions;
    private Integer score;
    private Integer rank;
    private Timestamp createdAt;

}